using Brilliance;

using SampleApplication.model;
using SampleApplication.view;

namespace SampleApplication.presenter
{
    public class DashboardPresenter : Presenter, IDashboardPresenter
    {
        private IDashboardView view;
        private Principal principal;

        public Principal Principal
        {
            get { return principal; }
            set
            {
                principal = value;
                view.Principal = value;
            }
        }

        protected override void PostViewSet(IView view)
        {
            this.view = (IDashboardView) view;
        }

        public override void Display()
        {
            view.DisplayView();
        }
    }
}